/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.workflow.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.sql.Timestamp;
import java.io.Serializable;

/**
* @website https://el-admin.vip
* @description /
* @author wzp
* @date 2021-04-18
**/
@Entity
@Data
@Table(name="act_re_deployment")
public class ActReDeployment implements Serializable {

    @Id
    @Column(name = "ID_")
    @ApiModelProperty(value = "id")
    private String id;

    @Column(name = "NAME_")
    @ApiModelProperty(value = "name")
    private String name;

    @Column(name = "CATEGORY_")
    @ApiModelProperty(value = "category")
    private String category;

    @Column(name = "KEY_")
    @ApiModelProperty(value = "key")
    private String key;

    @Column(name = "TENANT_ID_")
    @ApiModelProperty(value = "tenantId")
    private String tenantId;

    @Column(name = "DEPLOY_TIME_")
    @ApiModelProperty(value = "deployTime")
    private Timestamp deployTime;

    @Column(name = "ENGINE_VERSION_")
    @ApiModelProperty(value = "engineVersion")
    private String engineVersion;

    public void copy(ActReDeployment source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}